<div class="container_frame_left">
	<div class="block_left">
		{ib file="first_menu.tpl" type="menu_cf"}
		<br>
		{ib file="blue_top.tpl" type="gttg"}
	</div>
	<div class="block_center">
		<div class="block_flex">
			<div class="block_header">
				<div class="block_header_right f0">&nbsp;</div>
				<div class="block_header_left f0">&nbsp;</div>
				<div class="block_header_center f0">&nbsp;</div>
			</div>
			<div class="block_consultant">
				<table><tr><td width="470">
					<div class="f12" style="float:right;padding-right:16px">
						{if $element->status==1}
							<img src="/images/swicher.png" width="15" height="15" style="float:left;padding-right:5px"> {gender_form $element->gender "Свободен" "Свободна"}
						{elseif $element->status==2}
							<img src="/images/swicher_busy.png" width="15" height="15" style="float:left;padding-right:5px"> {gender_form $element->gender "Занят" "Занята"}
						{else}
							<img src="/images/swicher_off.png" width="15" height="15" style="float:left;padding-right:5px"> Оффлайн
						{/if}
					</div>
					<div class="consultant_name">{$consultant.name} {* <img src="/images/vip.gif" width="29" height="17"></div> *}
					<div class="consultant_phone">Добавочный номер: <b>{$consultant.ext}</b></div>
					<br>
					<div style="height:303px">
						<div class="cc_frame">
							{*<div class="cc_frame_inner">
								<div class="cc_frame_inner_I0 f0">&nbsp;</div>
								<div class="cc_frame_inner_I">«Верну в семью ушедшего к&nbsp;другу мужа»</div>
								<div class="cc_frame_inner_I0 f0">&nbsp;</div>
							</div>*}
						</div>
						<img src="{proxy url=$element->getPhotoPersonal() width=455 height=303}" width="455" height="303">
					</div>
				</td><td valign="top">
					<div class="n40" onclick="Consultant.dial({$consultant.id}, 1, {$element->sip})">
						<div class="n40_inner">
							Звонить по&nbsp;предоплате<br><br>
							<a href="#">Подробнее</a>
						</div>
					</div>
					<div class="n70">
						<div class="n70_inner" onclick="Consultant.dial({$consultant.id}, 2, {$element->sip})">
							Звоните с мобильного:<br>
							<span class="phone"><b>07047</b> {$element->sip}#</span>
							<a href="#">Подробнее</a>
						</div>
					</div>
					{*<div class="lv">
						<div class="lv_inner">
							Личная встреча
						</div>
					</div>
					<div class="pk">
						<div class="pk_inner">
							Письменная консультация
						</div>
					</div>
					<div class="cht">
						<div class="cht_inner">
							Чат
						</div>
					</div>
					*}
				</td></tr></table>
				<table style="margin:5px 0px"><tr><td>
					<div class="button_violet"><a href="#" onclick="Consultant.addToFavorites({$consultant.id}); return false"><span class="as"></span><span class="ss"><img src="/images/plus.gif" width="10" height="10" style="margin:0 5px 0 -5px;position:relative"> Добавить в любимые</span><span class="sa"></span></a></div>
				</td><td>
					<div class="f12" style="padding-left:30px"><img src="/images/pixel.gif" width="15" height="15" class="star" style="float:left;padding-right:3px">Оценка: <span class="orange"><b>{$element->rating}</b></span></div>
				</td></tr></table>
			</div>
			<div class="block_footer">
				<div class="block_footer_right f0">&nbsp;</div>
				<div class="block_footer_left f0">&nbsp;</div>
				<div class="block_footer_center f0">&nbsp;</div>
			</div>
		</div>
		<br>
		<div style="margin-right:200px">
			<div class="block_right">
				{ib file="blue_top.tpl" type="about3"} 
			</div>
			<div class="block_center_inner">
				<div class="href_link">
					<table width="455" style="margin-left:10px" class="info"><tr><td valign="top" width="110">
						<span><img src="/images/pixel.gif" width="13" height="12" class="calendar"> <a href="#" onclick="Consultant.gotoTimetable();return false">Расписание</a></span>
					</td><td valign="top">
						<span><img src="/images/pixel.gif" width="15" height="15" class="bubl"> <a href="#" onclick="Consultant.gotoReviews();return false">Отзывы</a></span>
					</td>
					{*<td valign="top">
						<span><img src="/images/pixel.gif" width="13" height="15" class="photo"> <a href="#">Фото</a></span>
					</td><td valign="top">
						<span><img src="/images/pixel.gif" width="15" height="13" class="audio"> <a href="#">Аудио</a></span>
					</td><td width="23%" valign="top">
						<span><img src="/images/pixel.gif" width="15" height="16" class="tmup"> <a href="#">Рекомендую<br>приобрести</a></span>
					</td> *}
					</tr></table>
				</div>
				
				{if $mode=="default"}
					<div class="plank">
						<div class="plank_bg_io">
							<div class="plank_tp_io">
								<table class="lat" width="425"><tr><td width="50%" valign="top">
									<div style="padding-bottom:5px">С П Е Ц И А Л И З А Ц И Я:</div>
									{foreach $specializations specialization}
										<div><span class="purple">&bull;</span> {$specialization.name}</div>
									{/foreach}
								</td><td style="padding-left:7px" valign="top">
									<div style="padding-bottom:5px">ТЕМАТИКА КОНСУЛЬТАЦИИ:</div>
									{foreach $themes theme}
										<div><span class="purple">&bull;</span> {$theme.name}</div>
									{/foreach}
								</td></tr></table>
							</div>
						</div>
						<div class="plank_bg">
							<div class="plank_bt_io">
								<div class="plank_inner" style="font-size:14px">
									<div style="font-size:12px;padding-top:20px">
										{$consultant.full_desc}<br/><br/>
										{* <div><b>Знак зодиака:</b> телец <img src="/images/telec.png"></div> *}
									</div>
								</div>
							</div>
						</div>
					</div>
				{/if}
				
				<div id="reviews_block">
					{frame_begin "blue" caption="ОТЗЫВЫ" mb="4"}
						{foreach $reviews item}
							<div class="comment">
								<div class="comment_title">
									<span><span class="blue" style="font-size:12px">{$item->author}</span>, <span>{$item->age} {plural_form $item->age "год" "года" "лет"}</span>{if isset($item->city) && $item->city!=""}, <span>{$item->city}</span>{/if}</span>
								</div>
								<div class="comment_inner">
									<img src="/images/com_rt.gif" style="position: absolute; right:0;"/>
									<img src="/images/com_lt.gif" style="position: absolute"/>
									<div class="com_cc"><div class="com_cc_inner">{auto_escape off}{$item->text}</div></div>
									<img src="/images/com_rb.gif" style="position: absolute; right:0;bottom:0;">
									<img src="/images/com_lb.gif" style="position: absolute;margin-top:-4px;">
								</div>
							</div>
						{else}
							Отзывов нет <br/><br/>
						{/foreach}
						
						{if $paginator}{ib "paginator.tpl"}{/if}
						
					{frame_end "blue" mb="4"}
					<br>
					<div id="comment_form" style="display:none">
						{*<div id="commentform_hide">&nbsp;</div>*}
						<div class="block_flex">
							<div class="block_header">
								<div class="block_header_right f0">&nbsp;</div>
								<div class="block_header_left f0">&nbsp;</div>
								<div class="block_header_center f0">&nbsp;</div>
							</div>
							<div style="padding:0px 15px">
								<div style="font-size:15px;padding-bottom:6px" class="lstt">Добавьте свой отзыв</div>
								<div class="dash f0">&nbsp;</div>
								<table style="width:436px;margin-top:6px"><tr>
									<td class="f12" width="138">Оцените консультанта:</td>
									<td class="f12 rating" width="125">
										<div><a href="#">1</a></div>
										<div><a href="#">2</a></div>
										<div class="select"><a href="#">3</a></div>
										<div><a href="#">4</a></div>
										<div><a href="#">5</a></div>
									</td>
									<td class="f12" style="color:#808080;font-style:italic" align="right">Так себе, средний</td>
								</tr></table>
								<br>
								<div class="f12" style="padding-bottom:5px">Ваш комментарий:</div>
								{ib file="items.tpl" width="436" type="textarea" name="comment_text"} 
								<div class="button_little" style="padding-top:5px"><a href="#" onclick="Comment.add(this, 'consultant', '{$consultant.id}');return false"><span class="as"></span><span class="ss">Отправить отзыв</span><span class="sa"></span></a></div>
								<div>&nbsp;</div>
							</div>
							<div class="block_footer">
								<div class="block_footer_right f0">&nbsp;</div>
								<div class="block_footer_left f0">&nbsp;</div>
								<div class="block_footer_center f0">&nbsp;</div>
							</div>
						</div>
						<br>
					</div>
				</div>
				{*
				<div class="block_blue">
					<div class="block_caption">
						<div class="ltw f0">&nbsp;</div>
						<div class="rtw f0 mb4">&nbsp;</div>
						<div class="block_caption_center">Константина рекомендует</div>
					</div>
					<div class="block_beige">
						<div id="move_block_s" class="mb_js">
							<div style="height:100%;overflow:hidden;padding:5px">
								<div style="width:5px;height:160px;float:left"><div class="cprev">&nbsp;</div></div>
								<div id="slideshow_s">
									<div class="slides">
										<table border="0" cellpadding="0" cellspacing="0"><tr>
						{for i 0 5}
											<td class="slide_s" align="top">
												<br>
												<div style="margin-right:22px;height:160px;background:url('/images/hr.gif') repeat-y right top"><div style="width:200px;margin-right:22px;background-color:white">
													<div class="rtg" style="margin-left:188px">&nbsp;</div>
													<div class="ltg">&nbsp;</div>
													<div><img src="/images/temp/temp6.jpg" /></div>
													<div class="rbg" style="margin-left:188px">&nbsp;</div>
													<div class="lbg">&nbsp;</div>
												</div></div>
												<br>
												<div style="padding:0px 5px;width:190px">
													<div style="background:url('/images/100.png') no-repeat left top;width:148px;height:28px;"><div style="color:white;padding:5px 16px 0;font-size:15px">Купить</div></div>
													<br>
													<div class="f12"><a href="#">Карты Таро «Магическая сила вашего ангела-хранителя»</a></div>
												</div>
											</td>
						{/for}
										</tr></table>
									</div>
								</div>
								<div style="width:5px;float:left"><div class="cnext">&nbsp;</div></div>
							</div>
						</div>
					</div>
					<div class="block_beige f0">
						<div class="block_footer_center f0">&nbsp;</div>
						<div class="lbw">&nbsp;</div>
						<div class="rbw mb4">&nbsp;</div>
					</div>
				</div>
				<br>
				
				*}
				
				{* 
				<div class="lstt" style="font-size:15px">Константина в гостях у Владимира Познера</div>
				<div><img src="/images/temp/temp14.jpg" style="padding:5px 0px"></div>
				
				*}
				{if $mode=="default"}
					<br>
					<div class="rasp" id="timetable_block">
						<div class="rasp_title">
							<div class="rasp_right"></div>
							<div class="rasp_left"></div>
							<div class="rasp_center"><div class="rasp_center_inner">Расписание на {$timetable_period}</div></div>
						</div>
						<div class="rasp_body">
							<div class="rasp_body_inner">
								<table width="100%"><tr>
									{foreach $timetable week}
									<td width="50%">
										<div style="padding:0 10px">
											{foreach $week day}
												<div class="rasp_day {if $day.today}rasp_day_select{/if}">
													<div class="rasp_day_inner">
														<div class="dsh">
															<span style="float:right">
																{if $day.time}
																	{$day.time.from_hour}<sup>{$day.time.from_minute}</sup>—{$day.time.to_hour}<sup>{$day.time.to_minute}</sup>
																{else}
																	Выходной
																{/if}
															</span>
															<span>{$day.day} <span{if !$day.time} class="purple"{/if}>{$day.weekDay}</span><sup>&nbsp;</sup></span>
														</div>
													</div>
												</div>
											{/foreach}
										</div>
									</td>
									{/foreach}
								</tr></table>
							</div>
							<div class="lbw">&nbsp;</div>
							<div class="rbw mb4">&nbsp;</div>
						</div>
					</div>
				{/if}
			</div>
		</div>
	</div>
</div>
<div class="clear"></div>

{literal}
	<script>
		$(function(){
			slide_scroll2();
		})
	</script>
{/literal}